package com.xiake.consultsystem;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**引入Security依赖默认开启了登录校验，访问API会跳转到登录页,如果只是需要BCrypt加密功能可以在启动类配置
 * @SpringBootApplication (exclude = { org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class })
 * 禁用Security相关功能。
 */
@SpringBootApplication(exclude = { org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class })
@EnableScheduling
@MapperScan("com.xiake.consultsystem.mapper")
public class ConsultSystemApplication {

	public static void main(String[] args) {
		SpringApplication.run(ConsultSystemApplication.class, args);
	}

}
